package com.zyc.app.woa.data;

import java.io.Serializable;

/**
 * Author: yingchang.zhang
 * Date  : 2014/11/24
 */
public class AccountInfo implements Serializable {
    public String name;
    public String wxId;
    public String desc;
    public String avatar;
    public String href;
    public String openId;
    public long updateTimeStamp;
    public int totalArticlesNum;
    public int subscribeArticlesNum;

    public AccountInfo() {
    }

    public AccountInfo(String name, String openId, String wxId, String desc, String avatar, String href) {
        this.name = name;
        this.openId = openId;
        this.wxId = wxId;
        this.desc = desc;
        this.avatar = avatar;
        this.href = href;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public long getUpdateTimeStamp() {
        return updateTimeStamp;
    }

    public void setUpdateTimeStamp(long updateTimeStamp) {
        this.updateTimeStamp = updateTimeStamp;
    }

    public int getTotalArticlesNum() {
        return totalArticlesNum;
    }

    public void setTotalArticlesNum(int totalArticlesNum) {
        this.totalArticlesNum = totalArticlesNum;
    }

    public int getSubscribeArticlesNum() {
        return subscribeArticlesNum;
    }

    public void setSubscribeArticlesNum(int subscribeArticlesNum) {
        this.subscribeArticlesNum = subscribeArticlesNum;
    }

    @Override
    public String toString() {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("name: " + name + "\n");
        stringBuffer.append("openId: " + openId + "\n");
        stringBuffer.append("wxId: " + wxId + "\n");
        stringBuffer.append("desc: " + desc + "\n");
        stringBuffer.append("avatar: " + avatar + "\n");
        stringBuffer.append("href: " + href + "\n");
        return stringBuffer.toString();
    }
}
